<!---
 
  Copyright (c) 2010, Cristian Costantini - cristian@millemultimedia.it
  
  FileManager is licensed under the terms of the Open Source GPL 3.0 license. 
	
	http://www.gnu.org/licenses/gpl.html
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--->
<cfcomponent output="false" hint="Configuration bean." >
    
	<cffunction name="init" access="public" output="false" returntype="Config" >
		<cfargument name="permissions" type="string" required="false" default="*" hint="if this settings is void, the user have all permissions" />
		<cfargument name="absolutePath" type="string" required="false" default="#expandPath('/')#" />
		<cfargument name="basePath" type="string" required="false" default="/" />
		<cfargument name="logerror" type="boolean" required="false" default="true" hint="Write a log when happens an error." />
		<cfargument name="sizeLimit" type="numeric" required="false" default="5000" hint="Size limit for upload in KB." />
		<cfargument name="maxDiskSpace" type="numeric" required="false" default="60000" hint="Disk space limit KB." />
		<cfargument name="mimetypes" type="string" required="false" default="image/*" />
		<cfargument name="nameconflict" type="string" required="false" default="makeunique" />
		
		<cfset var i = "" />
		
		<cfloop collection="#arguments#" item="i">
			<cfset this[i] = arguments[i] />
		</cfloop>
		
		<cfreturn this />
	</cffunction>

</cfcomponent>